package com.example.lastwork.service;


import com.example.lastwork.common.service.LogicService;
import com.example.lastwork.dao.ShopItemDao;
import com.example.lastwork.entity.ShopItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopItemService extends LogicService<ShopItemDao, ShopItem, Long> {
    public ShopItemService(@Autowired ShopItemDao dao){
        super(dao);
    }

    public List<ShopItem> listShopItemByShopId(Long shopId){
        return getDAO().listShopItemByShopId(shopId);
    }
}
